package com.compass.doctor.ui.patient.modle;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;

import java.util.Random;

public class CircleModel {
    public float x;
    public float y;
    public int r = 15;



    int red;
    int green;
    int blue;
    Random random=new Random();

    public CircleModel(float x, float y) {
        this.x = x;
        this.y = y;

        red=random.nextInt(255);
        green=random.nextInt(255);
        blue=random.nextInt(255);

    }


    public void  drawSelf(Canvas canvas, Paint paint){
        paint.setColor(Color.RED);
//        paint.setColor(Color.rgb(red,green,blue));
        canvas.drawCircle(x,y,r,paint);
    }
}
